package com.fnfn.sdk.api.common;

public class AjaxResponse extends AbstractBean {

    private static final long serialVersionUID = 1L;

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public AjaxResponse() {

    }

    public static AjaxResponse reponseBody(int code, String message) {
        AjaxResponse ajaxResponse = new AjaxResponse();
        ajaxResponse.setCode(code);
        ajaxResponse.setMessage(message);
        return ajaxResponse;
    }
}
